import { createRouter, createWebHashHistory } from 'vue-router'
// 路由信息
const routes = [
  {
    path:'/',
    redirect:'/function'
  },
  {
    path: "/function",
    name: "Function",
    component:  () => import('../views/functions/index.vue')
  },
  {
    path: "/version",
    name: "Version",
    component:  () => import('../views/version/index.vue')
  },
];
const router = createRouter({
  // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
  history: createWebHashHistory(),
  routes, // `routes: routes` 的缩写
})
export default router;

